package com.alumni_circle.core.service.rbac.impl;

import com.alumni_circle.core.entity.rbac.Authority;
import com.alumni_circle.core.entity.rbac.VO.AuthoritySearchVO;
import com.alumni_circle.core.entity.rbac.VO.AuthorityUpdateVO;
import com.alumni_circle.core.entity.rbac.VO.AuthorityViewVO;
import com.alumni_circle.core.mapper.rbac.AuthorityMapper;
import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.core.service.rbac.IAuthorityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-08-02 20:36
 */
@Service
public class AuthorityServiceImpl extends BaseServiceImpl<AuthorityMapper, Authority> implements IAuthorityService {
    
    @Resource
    AuthorityMapper authorityMapper;
    
    @Override
    public List<AuthoritySearchVO> searchAuthority(String id, String comment, String state, String updateName, String concat, String url) {
        return authorityMapper.searchAuthority(id, comment, state, updateName, concat, url);
    }

    @Override
    public List<AuthorityUpdateVO> getAllPermissionsUrl() {
        return authorityMapper.getAllPermissionsUrl();
    }

    @Override
    public List<AuthorityViewVO> getAll() {
        return authorityMapper.getAll();
    }
}
